import { createApp } from 'vue'
import '@/styles/base.scss'

import { createPinia } from 'pinia'
import ElementPlus from 'element-plus'
import router from './router'
import vueComponent from './plugins/vue-component'
// @ts-ignore
import 'virtual:svg-icons-register'

import App from './App.vue'

async function bootstrap() {
  const pinia = createPinia()
  const app = createApp(App)

  app.use(ElementPlus).use(vueComponent).use(pinia).use(router)
  app.mount('#app')
}

bootstrap()
